import PageTools from '@/components/PageTools'
// 这个组件中用到了一个第三方包 xlsx, 需要安装
import UploadExcel from '@/components/UploadExcel'
import ImageUpload from '@/components/ImageUpload'
import ScreenFull from '@/components/ScreenFull'
import ThemePicker from '@/components/ThemePicker'
import TagsView from '@/components/TagsView'
// 在这里封装一个插件, 这个插件用于进行大量组件的全局注册 yarn add xlsx@0.17.4
// 插件一般是个对象, 且有install方法
export default {
  install(Vue) {
    // console.log('插件')
    Vue.component('PageTools', PageTools)
    Vue.component('UploadExcel', UploadExcel)
    Vue.component('ImageUpload', ImageUpload)
    Vue.component('ScreenFull', ScreenFull)
    Vue.component('ThemePicker', ThemePicker)
    Vue.component('TagsView', TagsView)
  }
}
